﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Tasks;//Add Ref.
using System.Device.Location;
namespace Day2
{
    public partial class SharePage : PhoneApplicationPage
    {
        public SharePage()
        {
            InitializeComponent();
        }

        private void bntShare_Click(object sender, System.Windows.RoutedEventArgs e)
        {
        	// TODO: Add event handler implementation here.
			ShareLinkTask s = new ShareLinkTask();
			s.LinkUri = new Uri(txtLink.Text,UriKind.Absolute);
			s.Message = txtBody.Text;
			s.Title = "Share Link";
			s.Show();
			
			//ShareStatusTask st = new ShareStatusTask();
			//st.Status = txtBody.Text;
			//st.Show();
			
			//BingMapsDirectionsTask bing = new BingMapsDirectionsTask();
			//bing.Start = new LabeledMapLocation("Start",new GeoCoordinate(0,0));
			//bing.End = new LabeledMapLocation("End",new GeoCoordinate(0,0));;
			//bing.Show();
			
			//BingMapsTask b = new BingMapsTask();
			//b.Center = new GeoCoordinate(0,0);
			//b.ZoomLevel = b.ZoomLevel * 12;
			
        }
    }
}
